package com.ycsj.goldmedalnewconcept.common.util;

import java.util.ArrayList;
import java.util.List;

/**
 * 获取单元按钮的marginleft和margintop的集合方法
 * Created by Administrator on 2019/2/20 0020.
 */

public class LayoutUtils {
    //背景图的设计宽高
    private static int width = 750;
    private static int height = 10672;

    //宽度与设计图的偏移量
    private static int offset = 10;

    public static List<Integer> getMarinLefts(int screenWidth) {
        List<Integer> paramsMarginlefts = new ArrayList<>();
        int left72 = screenWidth * (221 + offset) / width;
        int left71 = screenWidth * (344 + offset) / width;
        int left70 = screenWidth * (266 + offset) / width;
        int left69 = screenWidth * (123 + offset) / width;
        int left68 = screenWidth * (190 + offset) / width;
        int left67 = screenWidth * (380 + offset) / width;
        int left66 = screenWidth * (553 + offset) / width;
        int left65 = screenWidth * (342 + offset) / width;
        int left64 = screenWidth * (384 + offset) / width;
        int left63 = screenWidth * (263 + offset) / width;
        int left62 = screenWidth * (330 + offset) / width;
        int left61 = screenWidth * (453 + offset) / width;
        int left60 = screenWidth * (319 + offset) / width;
        int left59 = screenWidth * (101 + offset) / width;
        int left58 = screenWidth * (262 + offset) / width;
        int left57 = screenWidth * (445 + offset) / width;
        int left56 = screenWidth * (513 + offset) / width;
        int left55 = screenWidth * (384 + offset) / width;
        int left54 = screenWidth * (222 + offset) / width;
        int left53 = screenWidth * (140 + offset) / width;
        int left52 = screenWidth * (237 + offset) / width;
        int left51 = screenWidth * (427 + offset) / width;
        int left50 = screenWidth * (470 + offset) / width;
        int left49 = screenWidth * (305 + offset) / width;
        int left48 = screenWidth * (103 + offset) / width;
        int left47 = screenWidth * (249 + offset) / width;
        int left46 = screenWidth * (243 + offset) / width;
        int left45 = screenWidth * (155 + offset) / width;
        int left44 = screenWidth * (391 + offset) / width;
        int left43 = screenWidth * (565 + offset) / width;
        int left42 = screenWidth * (468 + offset) / width;
        int left41 = screenWidth * (236 + offset) / width;
        int left40 = screenWidth * (122 + offset) / width;
        int left39 = screenWidth * (231 + offset) / width;
        int left38 = screenWidth * (444 + offset) / width;
        int left37 = screenWidth * (514 + offset) / width;
        int left36 = screenWidth * (421 + offset) / width;
        int left35 = screenWidth * (488 + offset) / width;
        int left34 = screenWidth * (429 + offset) / width;
        int left33 = screenWidth * (89 + offset) / width;
        int left32 = screenWidth * (339 + offset) / width;
        int left31 = screenWidth * (577 + offset) / width;
        int left30 = screenWidth * (354 + offset) / width;
        int left29 = screenWidth * (553 + offset) / width;
        int left28 = screenWidth * (350 + offset) / width;
        int left27 = screenWidth * (167 + offset) / width;
        int left26 = screenWidth * (317 + offset) / width;
        int left25 = screenWidth * (99 + offset) / width;
        int left24 = screenWidth * (195 + offset) / width;
        int left23 = screenWidth * (322 + offset) / width;
        int left22 = screenWidth * (435 + offset) / width;
        int left21 = screenWidth * (218 + offset) / width;
        int left20 = screenWidth * (103 + offset) / width;
        int left19 = screenWidth * (166 + offset) / width;
        int left18 = screenWidth * (326 + offset) / width;
        int left17 = screenWidth * (442 + offset) / width;
        int left16 = screenWidth * (455 + offset) / width;
        int left15 = screenWidth * (298 + offset) / width;
        int left14 = screenWidth * (199 + offset) / width;
        int left13 = screenWidth * (208 + offset) / width;
        int left12 = screenWidth * (374 + offset) / width;
        int left11 = screenWidth * (509 + offset) / width;
        int left10 = screenWidth * (524 + offset) / width;
        int left9 = screenWidth * (437 + offset) / width;
        int left8 = screenWidth * (308 + offset) / width;
        int left7 = screenWidth * (151 + offset) / width;
        int left6 = screenWidth * (235 + offset) / width;
        int left5 = screenWidth * (474 + offset) / width;
        int left4 = screenWidth * (446 + offset) / width;
        int left3 = screenWidth * (275 + offset) / width;
        int left2 = screenWidth * (259 + offset) / width;
        int left1 = screenWidth * (402 + offset) / width;
        paramsMarginlefts.add(left72);
        paramsMarginlefts.add(left71);
        paramsMarginlefts.add(left70);
        paramsMarginlefts.add(left69);
        paramsMarginlefts.add(left68);
        paramsMarginlefts.add(left67);
        paramsMarginlefts.add(left66);
        paramsMarginlefts.add(left65);
        paramsMarginlefts.add(left64);
        paramsMarginlefts.add(left63);
        paramsMarginlefts.add(left62);
        paramsMarginlefts.add(left61);
        paramsMarginlefts.add(left60);
        paramsMarginlefts.add(left59);
        paramsMarginlefts.add(left58);
        paramsMarginlefts.add(left57);
        paramsMarginlefts.add(left56);
        paramsMarginlefts.add(left55);
        paramsMarginlefts.add(left54);
        paramsMarginlefts.add(left53);
        paramsMarginlefts.add(left52);
        paramsMarginlefts.add(left51);
        paramsMarginlefts.add(left50);
        paramsMarginlefts.add(left49);
        paramsMarginlefts.add(left48);
        paramsMarginlefts.add(left47);
        paramsMarginlefts.add(left46);
        paramsMarginlefts.add(left45);
        paramsMarginlefts.add(left44);
        paramsMarginlefts.add(left43);
        paramsMarginlefts.add(left42);
        paramsMarginlefts.add(left41);
        paramsMarginlefts.add(left40);
        paramsMarginlefts.add(left39);
        paramsMarginlefts.add(left38);
        paramsMarginlefts.add(left37);
        paramsMarginlefts.add(left36);
        paramsMarginlefts.add(left35);
        paramsMarginlefts.add(left34);
        paramsMarginlefts.add(left33);
        paramsMarginlefts.add(left32);
        paramsMarginlefts.add(left31);
        paramsMarginlefts.add(left30);
        paramsMarginlefts.add(left29);
        paramsMarginlefts.add(left28);
        paramsMarginlefts.add(left27);
        paramsMarginlefts.add(left26);
        paramsMarginlefts.add(left25);
        paramsMarginlefts.add(left24);
        paramsMarginlefts.add(left23);
        paramsMarginlefts.add(left22);
        paramsMarginlefts.add(left21);
        paramsMarginlefts.add(left20);
        paramsMarginlefts.add(left19);
        paramsMarginlefts.add(left18);
        paramsMarginlefts.add(left17);
        paramsMarginlefts.add(left16);
        paramsMarginlefts.add(left15);
        paramsMarginlefts.add(left14);
        paramsMarginlefts.add(left13);
        paramsMarginlefts.add(left12);
        paramsMarginlefts.add(left11);
        paramsMarginlefts.add(left10);
        paramsMarginlefts.add(left9);
        paramsMarginlefts.add(left8);
        paramsMarginlefts.add(left7);
        paramsMarginlefts.add(left6);
        paramsMarginlefts.add(left5);
        paramsMarginlefts.add(left4);
        paramsMarginlefts.add(left3);
        paramsMarginlefts.add(left2);
        paramsMarginlefts.add(left1);
        return paramsMarginlefts;
    }


    public static List<Integer> getMarinTops(int llheight) {
        List<Integer> paramsMargintops = new ArrayList<>();
        int top72 = llheight * 271 / height;
        int top71 = llheight * 437 / height;
        int top70 = llheight * 593 / height;
        int top69 = llheight * 775 / height;
        int top68 = llheight * 942 / height;
        int top67 = llheight * 977 / height;
        int top66 = llheight * 1101 / height;
        int top65 = llheight * 1251 / height;
        int top64 = llheight * 1426 / height;
        int top63 = llheight * 1642 / height;
        int top62 = llheight * 1786 / height;
        int top61 = llheight * 1920 / height;
        int top60 = llheight * 2044 / height;
        int top59 = llheight * 2139 / height;
        int top58 = llheight * 2260 / height;
        int top57 = llheight * 2379 / height;
        int top56 = llheight * 2546 / height;
        int top55 = llheight * 2707 / height;
        int top54 = llheight * 2844 / height;
        int top53 = llheight * 2991 / height;
        int top52 = llheight * 3143 / height;
        int top51 = llheight * 3250 / height;
        int top50 = llheight * 3416 / height;
        int top49 = llheight * 3503 / height;
        int top48 = llheight * 3578 / height;
        int top47 = llheight * 3737 / height;
        int top46 = llheight * 3953 / height;
        int top45 = llheight * 4179 / height;
        int top44 = llheight * 4303 / height;
        int top43 = llheight * 4450 / height;
        int top42 = llheight * 4630 / height;
        int top41 = llheight * 4674 / height;
        int top40 = llheight * 4808 / height;
        int top39 = llheight * 4997 / height;
        int top38 = llheight * 5052 / height;
        int top37 = llheight * 5234 / height;
        int top36 = llheight * 5436 / height;
        int top35 = llheight * 5644 / height;
        int top34 = llheight * 5864 / height;
        int top33 = llheight * 6038 / height;
        int top32 = llheight * 6071 / height;
        int top31 = llheight * 6156 / height;
        int top30 = llheight * 6323 / height;
        int top29 = llheight * 6510 / height;
        int top28 = llheight * 6575 / height;
        int top27 = llheight * 6768 / height;
        int top26 = llheight * 6919 / height;
        int top25 = llheight * 7007 / height;
        int top24 = llheight * 7126 / height;
        int top23 = llheight * 7250 / height;
        int top22 = llheight * 7426 / height;
        int top21 = llheight * 7552 / height;
        int top20 = llheight * 7721 / height;
        int top19 = llheight * 7915 / height;
        int top18 = llheight * 8095 / height;
        int top17 = llheight * 8259 / height;
        int top16 = llheight * 8451 / height;
        int top15 = llheight * 8574 / height;
        int top14 = llheight * 8732 / height;
        int top13 = llheight * 8919 / height;
        int top12 = llheight * 8997 / height;
        int top11 = llheight * 9138 / height;
        int top10 = llheight * 9304 / height;
        int top9 = llheight * 9466 / height;
        int top8 = llheight * 9602 / height;
        int top7 = llheight * 9782 / height;
        int top6 = llheight * 9942 / height;
        int top5 = llheight * 10015 / height;
        int top4 = llheight * 10168 / height;
        int top3 = llheight * 10248 / height;
        int top2 = llheight * 10404 / height;
        int top1 = llheight * 10490 / height;

        paramsMargintops.add(top72);
        paramsMargintops.add(top71);
        paramsMargintops.add(top70);
        paramsMargintops.add(top69);
        paramsMargintops.add(top68);
        paramsMargintops.add(top67);
        paramsMargintops.add(top66);
        paramsMargintops.add(top65);
        paramsMargintops.add(top64);
        paramsMargintops.add(top63);
        paramsMargintops.add(top62);
        paramsMargintops.add(top61);
        paramsMargintops.add(top60);
        paramsMargintops.add(top59);
        paramsMargintops.add(top58);
        paramsMargintops.add(top57);
        paramsMargintops.add(top56);
        paramsMargintops.add(top55);
        paramsMargintops.add(top54);
        paramsMargintops.add(top53);
        paramsMargintops.add(top52);
        paramsMargintops.add(top51);
        paramsMargintops.add(top50);
        paramsMargintops.add(top49);
        paramsMargintops.add(top48);
        paramsMargintops.add(top47);
        paramsMargintops.add(top46);
        paramsMargintops.add(top45);
        paramsMargintops.add(top44);
        paramsMargintops.add(top43);
        paramsMargintops.add(top42);
        paramsMargintops.add(top41);
        paramsMargintops.add(top40);
        paramsMargintops.add(top39);
        paramsMargintops.add(top38);
        paramsMargintops.add(top37);
        paramsMargintops.add(top36);
        paramsMargintops.add(top35);
        paramsMargintops.add(top34);
        paramsMargintops.add(top33);
        paramsMargintops.add(top32);
        paramsMargintops.add(top31);
        paramsMargintops.add(top30);
        paramsMargintops.add(top29);
        paramsMargintops.add(top28);
        paramsMargintops.add(top27);
        paramsMargintops.add(top26);
        paramsMargintops.add(top25);
        paramsMargintops.add(top24);
        paramsMargintops.add(top23);
        paramsMargintops.add(top22);
        paramsMargintops.add(top21);
        paramsMargintops.add(top20);
        paramsMargintops.add(top19);
        paramsMargintops.add(top18);
        paramsMargintops.add(top17);
        paramsMargintops.add(top16);
        paramsMargintops.add(top15);
        paramsMargintops.add(top14);
        paramsMargintops.add(top13);
        paramsMargintops.add(top12);
        paramsMargintops.add(top11);
        paramsMargintops.add(top10);
        paramsMargintops.add(top9);
        paramsMargintops.add(top8);
        paramsMargintops.add(top7);
        paramsMargintops.add(top6);
        paramsMargintops.add(top5);
        paramsMargintops.add(top4);
        paramsMargintops.add(top3);
        paramsMargintops.add(top2);
        paramsMargintops.add(top1);

        return paramsMargintops;
    }

}
